import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
import global from "@/global/global.js"
import "../src/assets/iconfont.css"
Vue.prototype.global = global
//import store from './store/index'

Vue.use(VueAxios,axios)
Vue.use(ElementUI)
Vue.use(Vant)
//引入路由
import router from '@/router'
Vue.config.productionTip = false

//引入格式化时间函数
import {formatTime} from "./utils/time";
Vue.directive('title',  function (el, binding) {
  document.title = el.dataset.title
})
// 格式话时间
Vue.filter('format', formatTime)

new Vue({
  render: h => h(App),
  router,
  //store,
}).$mount('#app')
